<?php include("inc/global.inc");
      include("inc/page.php");
$url="productgroup.php";
$thepage=$_GET['page']?$_GET['page']:1;
$maxpage=20;
$g_rs=mysql_query("SELECT * FROM `hot_list` WHERE id=".$_GET['pid']."");
$g_row=mysql_fetch_array($g_rs);

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?=$g_row[p_cname]?>，<?=$g_row[p_cname]?>热点产品展示，<?=$m_row['m_cname']?><?php if($m_row['catalog_id2']){echo "专业$m_row[catalog_2]产品供应商。";}?></title>
<meta name="description" content="<?=$m_row['m_cname']?>为您提供<?=$g_row[p_cname]?>,<?=$g_row[p_cname]?>热点产品"/>
<meta name="keywords" content="<?=$g_row[p_cname]?>,<?=$g_row[p_cname]?>图片,<?=$g_row[p_cname]?>商家,<?=$m_row['m_cname']?>" />
<link href="/template/<?=$template?>/css/allcss.css" rel="stylesheet" type="text/css" />
<link href="/template/css/template.css" rel="stylesheet" type="text/css" />
<link href="/template/css/top1.css" rel="stylesheet" type="text/css" />
</head>
<body>
<?php include("inc/top1.php")?>
<div class="main">
<?php include("inc/top2.php")?>
<div class="path size11"><a href="../../index.html">首页</a> >> <a href="../../hot-list/1.html">热点产品展示</a> >> <?=$g_row[p_cname]?></div>
<div class="left">
<?php include("inc/left2.php")?>
</div>
<div class="right">
<div class="rightbox">
<script type="text/javascript"><!--
google_ad_client = "pub-2924453545159453";
/* 728x90, 创建于 11-3-14 */
google_ad_slot = "5638832665";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<div class="path1 size11">
  <form action="" method="post" name="PageItems">
    显示
    <select name="perPageItem">
      <option value="10">10</option>
      <option value="20" selected="selected">20</option>
      <option value="30">30</option>
    </select>
    条
  </form>
</div>
<div class="rightbox">
<div class="probox">
	<ul>	
<?php
  $p_rs=mysql_query("select id,picture,p_title,p_info from hot_pro where member_id=".$member_id." and p_list_id=".$_GET['pid']." and p_sh=1 order by id desc limit ".($thepage-1)*$maxpage.",$maxpage");
  while($p_row=mysql_fetch_array($p_rs)){
  ?>
	<li class="prolist">
	<a href="/cn/template/<?=$_GET['w_name']?>/hot/<?=$p_row['id']?>.html"><?php if(trim($p_row['picture'])){?><img src="http://img.sandib2b.cn/<?=$p_row['picture']?>" width="100" height="100" /><?php }else{?><img src="/template/images/InfoPic.gif" width="100" height="100" /><?php }?></a>
	
  <dt><a href="/cn/template/<?=$_GET['w_name']?>/hot/<?=$p_row['id']?>.html"><?=mb_substr($p_row['p_title'],0,25,'utf-8')?></a></dt>
  </li>

<?php
}
mysql_free_result($p_rs);
$rs2=mysql_query("select count(id) from hot_pro where member_id=".$member_id." and p_list_id=".$_GET['pid']." and p_sh=1");
$totalrecord=mysql_result($rs2,0);
$totalpage=ceil($totalrecord/$maxpage);
mysql_free_result($rs2);
?> 
	</ul>
</div>
  <!--page-->
<div class="page">
<div class="pageleft">
<ul>
<?php pages($thepage,$totalpage,$maxpage,9);?>
</ul>
</div>
<div class="pageright">
  <form name="pageform" method="post" action="" onSubmit="return onCheckPage()"> 
  Go to Page <input type="text" name="page" class="input-txt">
      <input type="submit" value="Go" class="but">
	  </form>
	  <script language="javascript"> 
function onCheckPage(){ 
var page = parseInt(document.pageform.page.value); 
if(isNaN(page)){ 
alert("Please enter the number (1,<?=$totalpage?>)"); 
return false; 
} 
if(page <= 0 ) { 
page =1; 
} 
if(page ><?=$totalpage?>){ 
page=<?=$totalpage?>; 
} 
if(page>1 ) { 
document.pageform.action = "/template/<?=$_GET['w_name']?>/hot-group/<?=$_GET[group_name]?>/<?=$_GET[pid]?>/"+page+".html"; 
} else { 
document.pageform.action = "/template/<?=$_GET['w_name']?>/hot-group/<?=$_GET[group_name]?>/<?=$_GET[pid]?>/1.html"; 
}
return true; 
}
--> 
</script>
  </div>
<div class="onl"></div>
</div>
<!--page end-->

</div>
<div class="rightbox">
<script type="text/javascript"><!--
google_ad_client = "pub-2924453545159453";
/* 728x90, 创建于 11-3-14 */
google_ad_slot = "5638832665";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
</div>
<div class="onl"></div>
<br />
<div id="mian" class="downside20 side" align="center">
<script type="text/javascript">/*960*90，创建于2011-3-9*/ var cpro_id = 'u403357';</script><script src="http://cpro.baidu.com/cpro/ui/c.js" type="text/javascript"></script>
<div class="onl"></div>
</div>
<?php include("inc/foot.php");?>
</div>
</body>
</html>
<?php mysql_free_result($g_rs);?>
